class Solution(object):
    def longestNiceSubstring(self, s):
        